Optimal. Leaf size=157 \[ \frac{4 b^{5/3} \log \left (a^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3}\right )}{9 a^{11/3}}-\frac{8 b^{5/3} \log \left (\sqrt [3]{a} x+\sqrt [3]{b}\right )}{9 a^{11/3}}-\frac{8 b^{5/3} \tan ^{-1}\left (\frac{\sqrt [3]{b}-2 \sqrt [3]{a} x}{\sqrt{3} \sqrt [3]{b}}\right )}{3 \sqrt{3} a^{11/3}}-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (a x^3+b\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0968901, antiderivative size = 157, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.692, Rules used = {263, 288, 302, 292, 31, 634, 617, 204, 628} \[ \frac{4 b^{5/3} \log \left (a^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3}\right )}{9 a^{11/3}}-\frac{8 b^{5/3} \log \left (\sqrt [3]{a} x+\sqrt [3]{b}\right )}{9 a^{11/3}}-\frac{8 b^{5/3} \tan ^{-1}\left (\frac{\sqrt [3]{b}-2 \sqrt [3]{a} x}{\sqrt{3} \sqrt [3]{b}}\right )}{3 \sqrt{3} a^{11/3}}-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (a x^3+b\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 263
Rule 288
Rule 302
Rule 292
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{x^4}{\left (a+\frac{b}{x^3}\right )^2} \, dx &=\int \frac{x^{10}}{\left (b+a x^3\right )^2} \, dx\\ &=-\frac{x^8}{3 a \left (b+a x^3\right )}+\frac{8 \int \frac{x^7}{b+a x^3} \, dx}{3 a}\\ &=-\frac{x^8}{3 a \left (b+a x^3\right )}+\frac{8 \int \left (-\frac{b x}{a^2}+\frac{x^4}{a}+\frac{b^2 x}{a^2 \left (b+a x^3\right )}\right ) \, dx}{3 a}\\ &=-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (b+a x^3\right )}+\frac{\left (8 b^2\right ) \int \frac{x}{b+a x^3} \, dx}{3 a^3}\\ &=-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (b+a x^3\right )}-\frac{\left (8 b^{5/3}\right ) \int \frac{1}{\sqrt [3]{b}+\sqrt [3]{a} x} \, dx}{9 a^{10/3}}+\frac{\left (8 b^{5/3}\right ) \int \frac{\sqrt [3]{b}+\sqrt [3]{a} x}{b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2} \, dx}{9 a^{10/3}}\\ &=-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (b+a x^3\right )}-\frac{8 b^{5/3} \log \left (\sqrt [3]{b}+\sqrt [3]{a} x\right )}{9 a^{11/3}}+\frac{\left (4 b^{5/3}\right ) \int \frac{-\sqrt [3]{a} \sqrt [3]{b}+2 a^{2/3} x}{b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2} \, dx}{9 a^{11/3}}+\frac{\left (4 b^2\right ) \int \frac{1}{b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2} \, dx}{3 a^{10/3}}\\ &=-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (b+a x^3\right )}-\frac{8 b^{5/3} \log \left (\sqrt [3]{b}+\sqrt [3]{a} x\right )}{9 a^{11/3}}+\frac{4 b^{5/3} \log \left (b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2\right )}{9 a^{11/3}}+\frac{\left (8 b^{5/3}\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{a} x}{\sqrt [3]{b}}\right )}{3 a^{11/3}}\\ &=-\frac{4 b x^2}{3 a^3}+\frac{8 x^5}{15 a^2}-\frac{x^8}{3 a \left (b+a x^3\right )}-\frac{8 b^{5/3} \tan ^{-1}\left (\frac{\sqrt [3]{b}-2 \sqrt [3]{a} x}{\sqrt{3} \sqrt [3]{b}}\right )}{3 \sqrt{3} a^{11/3}}-\frac{8 b^{5/3} \log \left (\sqrt [3]{b}+\sqrt [3]{a} x\right )}{9 a^{11/3}}+\frac{4 b^{5/3} \log \left (b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2\right )}{9 a^{11/3}}\\ \end{align*}
Mathematica [A] time = 0.0937429, size = 144, normalized size = 0.92 \[ \frac{-\frac{15 a^{2/3} b^2 x^2}{a x^3+b}+20 b^{5/3} \log \left (a^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3}\right )-45 a^{2/3} b x^2+9 a^{5/3} x^5-40 b^{5/3} \log \left (\sqrt [3]{a} x+\sqrt [3]{b}\right )-40 \sqrt{3} b^{5/3} \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{a} x}{\sqrt [3]{b}}}{\sqrt{3}}\right )}{45 a^{11/3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 137, normalized size = 0.9 \begin{align*}{\frac{{x}^{5}}{5\,{a}^{2}}}-{\frac{b{x}^{2}}{{a}^{3}}}-{\frac{{b}^{2}{x}^{2}}{3\,{a}^{3} \left ( a{x}^{3}+b \right ) }}-{\frac{8\,{b}^{2}}{9\,{a}^{4}}\ln \left ( x+\sqrt [3]{{\frac{b}{a}}} \right ){\frac{1}{\sqrt [3]{{\frac{b}{a}}}}}}+{\frac{4\,{b}^{2}}{9\,{a}^{4}}\ln \left ({x}^{2}-\sqrt [3]{{\frac{b}{a}}}x+ \left ({\frac{b}{a}} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{{\frac{b}{a}}}}}}+{\frac{8\,{b}^{2}\sqrt{3}}{9\,{a}^{4}}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{b}{a}}}}}}-1 \right ) } \right ){\frac{1}{\sqrt [3]{{\frac{b}{a}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.43158, size = 443, normalized size = 2.82 \begin{align*} \frac{9 \, a^{2} x^{8} - 36 \, a b x^{5} - 60 \, b^{2} x^{2} + 40 \, \sqrt{3}{\left (a b x^{3} + b^{2}\right )} \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{1}{3}} \arctan \left (\frac{2 \, \sqrt{3} a x \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{1}{3}} + \sqrt{3} b}{3 \, b}\right ) - 20 \,{\left (a b x^{3} + b^{2}\right )} \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{1}{3}} \log \left (b x^{2} - a x \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{2}{3}} - b \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{1}{3}}\right ) + 40 \,{\left (a b x^{3} + b^{2}\right )} \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{1}{3}} \log \left (b x + a \left (-\frac{b^{2}}{a^{2}}\right )^{\frac{2}{3}}\right )}{45 \,{\left (a^{4} x^{3} + a^{3} b\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.646954, size = 70, normalized size = 0.45 \begin{align*} - \frac{b^{2} x^{2}}{3 a^{4} x^{3} + 3 a^{3} b} + \operatorname{RootSum}{\left (729 t^{3} a^{11} + 512 b^{5}, \left ( t \mapsto t \log{\left (\frac{81 t^{2} a^{7}}{64 b^{3}} + x \right )} \right )\right )} + \frac{x^{5}}{5 a^{2}} - \frac{b x^{2}}{a^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.34842, size = 204, normalized size = 1.3 \begin{align*} -\frac{b^{2} x^{2}}{3 \,{\left (a x^{3} + b\right )} a^{3}} - \frac{8 \, b \left (-\frac{b}{a}\right )^{\frac{2}{3}} \log \left ({\left | x - \left (-\frac{b}{a}\right )^{\frac{1}{3}} \right |}\right )}{9 \, a^{3}} - \frac{8 \, \sqrt{3} \left (-a^{2} b\right )^{\frac{2}{3}} b \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{b}{a}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{b}{a}\right )^{\frac{1}{3}}}\right )}{9 \, a^{5}} + \frac{4 \, \left (-a^{2} b\right )^{\frac{2}{3}} b \log \left (x^{2} + x \left (-\frac{b}{a}\right )^{\frac{1}{3}} + \left (-\frac{b}{a}\right )^{\frac{2}{3}}\right )}{9 \, a^{5}} + \frac{a^{8} x^{5} - 5 \, a^{7} b x^{2}}{5 \, a^{10}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]